package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplus.entity.User;
import com.example.mybatisplus.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper extends BaseMapper<User> {


    /**
     * 测试XML
     * @return
     */
    List<User> allList();

    /**
     * 测试分页
     * @param page
     * @return
     */
    List<UserVo> allListByPage(Page page, @Param("username") String username);
}
